package test;

public class Demo {
    public static void main(String[] args) {
        //创建对象
        PingPongPlayer ppp = new PingPongPlayer("马龙", 18);
        ppp.eat("鸡腿");
        ppp.sleep();
        ppp.study();
        PingPongCoach ppc = new PingPongCoach("刘胖子",50);
        ppc.eat("燕窝");
        ppc.sleep();
        ppc.teach();
        System.out.println("--------------------");
        BasketBallPlayer bbp = new BasketBallPlayer("周琦大魔王",20);
        bbp.eat("煎饼果子");
        bbp.sleep();
        bbp.study();
        bbp.learnEnglish();
        BasketBallCoach bbc = new BasketBallCoach("姚明",30);
        bbc.eat("鲍鱼");
        bbc.sleep();
        bbc.teach();
        bbc.learnEnglish();
    }
}
